package dk.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ReturnData.ResponseData;

import dk.service.ApiService;
import dk.service.ConfigService;
import dk.service.TokenService;

@RestController
@RequestMapping("api")

public class LoginController {
	@Autowired
	ApiService Apiservice;
	@PostMapping("Login")
	public ResponseData Login (String username,String password) {
		System.out.println("Login方法启用了");
		return Apiservice.GetTokenByNameAndPassword(username, password);
	}
	

}
